//
//  MineOneCell.m
//  ShopDemo
//
//  Created by 飞扬的青春 on 2018/7/11.
//  Copyright © 2018年 飞扬的青春. All rights reserved.
//

#import "MineOneCell.h"

@implementation MineOneCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImageView *imagevi = [UIImageView new];
        [self.contentView addSubview:imagevi];
        self.titimageview = imagevi;
        imagevi.sd_layout
        .centerYEqualToView(self.contentView)
        .leftSpaceToView(self.contentView, 10*kJLXWidthScale)
        .widthIs(22*kJLXWidthScale)
        .heightIs(22*kJLXWidthScale);
        
        UILabel *lab = [UILabel new];
        lab.font = [UIFont systemFontOfSize:16*kJLXWidthScale];
        lab.textAlignment = NSTextAlignmentLeft;
        lab.textColor = [UIColor blackColor];
        self.titlab = lab;
        [self.contentView addSubview:lab];
        lab.sd_layout
        .leftSpaceToView(imagevi, 8*kJLXWidthScale)
        .rightSpaceToView(self.contentView, 60*kJLXWidthScale)
        .bottomSpaceToView(self.contentView, 8*kJLXWidthScale)
        .topSpaceToView(self.contentView, 8*kJLXWidthScale);
        
    }
    return self;
}

@end
